<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Directory (Metadata-Extractor - JavaDoc - An Open Source Java Library for Image File Metadata)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Directory (Metadata-Extractor - JavaDoc - An Open Source Java Library for Image File Metadata)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Directory.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><a href='http://www.drewnoakes.com/code/exif/' title='Go to the project home page.'><img src='http://metadata-extractor.googlecode.com/git/Resources/metadata-extractor-logo-131x30.png' border=0 alt='Metadata Extractor Logo'></a></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/drew/metadata/DefaultTagDescriptor.html" title="class in com.drew.metadata"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/drew/metadata/Face.html" title="class in com.drew.metadata"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/drew/metadata/Directory.html" target="_top">Frames</a></li>
<li><a href="Directory.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.drew.metadata</div>
<h2 title="Class Directory" class="title">Class Directory</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.drew.metadata.Directory</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../com/drew/metadata/adobe/AdobeJpegDirectory.html" title="class in com.drew.metadata.adobe">AdobeJpegDirectory</a>, <a href="../../../com/drew/metadata/exif/CanonMakernoteDirectory.html" title="class in com.drew.metadata.exif">CanonMakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/CasioType1MakernoteDirectory.html" title="class in com.drew.metadata.exif">CasioType1MakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/CasioType2MakernoteDirectory.html" title="class in com.drew.metadata.exif">CasioType2MakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/ExifIFD0Directory.html" title="class in com.drew.metadata.exif">ExifIFD0Directory</a>, <a href="../../../com/drew/metadata/exif/ExifInteropDirectory.html" title="class in com.drew.metadata.exif">ExifInteropDirectory</a>, <a href="../../../com/drew/metadata/exif/ExifSubIFDDirectory.html" title="class in com.drew.metadata.exif">ExifSubIFDDirectory</a>, <a href="../../../com/drew/metadata/exif/ExifThumbnailDirectory.html" title="class in com.drew.metadata.exif">ExifThumbnailDirectory</a>, <a href="../../../com/drew/metadata/exif/FujifilmMakernoteDirectory.html" title="class in com.drew.metadata.exif">FujifilmMakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/GpsDirectory.html" title="class in com.drew.metadata.exif">GpsDirectory</a>, <a href="../../../com/drew/metadata/icc/IccDirectory.html" title="class in com.drew.metadata.icc">IccDirectory</a>, <a href="../../../com/drew/metadata/iptc/IptcDirectory.html" title="class in com.drew.metadata.iptc">IptcDirectory</a>, <a href="../../../com/drew/metadata/jfif/JfifDirectory.html" title="class in com.drew.metadata.jfif">JfifDirectory</a>, <a href="../../../com/drew/metadata/jpeg/JpegCommentDirectory.html" title="class in com.drew.metadata.jpeg">JpegCommentDirectory</a>, <a href="../../../com/drew/metadata/jpeg/JpegDirectory.html" title="class in com.drew.metadata.jpeg">JpegDirectory</a>, <a href="../../../com/drew/metadata/exif/KodakMakernoteDirectory.html" title="class in com.drew.metadata.exif">KodakMakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/KyoceraMakernoteDirectory.html" title="class in com.drew.metadata.exif">KyoceraMakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/NikonType1MakernoteDirectory.html" title="class in com.drew.metadata.exif">NikonType1MakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/NikonType2MakernoteDirectory.html" title="class in com.drew.metadata.exif">NikonType2MakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/OlympusMakernoteDirectory.html" title="class in com.drew.metadata.exif">OlympusMakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/PanasonicMakernoteDirectory.html" title="class in com.drew.metadata.exif">PanasonicMakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/PentaxMakernoteDirectory.html" title="class in com.drew.metadata.exif">PentaxMakernoteDirectory</a>, <a href="../../../com/drew/metadata/photoshop/PhotoshopDirectory.html" title="class in com.drew.metadata.photoshop">PhotoshopDirectory</a>, <a href="../../../com/drew/metadata/photoshop/PsdHeaderDirectory.html" title="class in com.drew.metadata.photoshop">PsdHeaderDirectory</a>, <a href="../../../com/drew/metadata/exif/SigmaMakernoteDirectory.html" title="class in com.drew.metadata.exif">SigmaMakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/SonyType1MakernoteDirectory.html" title="class in com.drew.metadata.exif">SonyType1MakernoteDirectory</a>, <a href="../../../com/drew/metadata/exif/SonyType6MakernoteDirectory.html" title="class in com.drew.metadata.exif">SonyType6MakernoteDirectory</a>, <a href="../../../com/drew/metadata/xmp/XmpDirectory.html" title="class in com.drew.metadata.xmp">XmpDirectory</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="strong">Directory</span>
extends java.lang.Object</pre>
<div class="block">Abstract base class for all directory implementations, having methods for getting and setting tag values of various
 data types.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Drew Noakes http://drewnoakes.com</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.util.Collection&lt;<a href="../../../com/drew/metadata/Tag.html" title="class in com.drew.metadata">Tag</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#_definedTagList">_definedTagList</a></strong></code>
<div class="block">A convenient list holding tag values in the order in which they were stored.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../com/drew/metadata/TagDescriptor.html" title="class in com.drew.metadata">TagDescriptor</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#_descriptor">_descriptor</a></strong></code>
<div class="block">The descriptor used to interpret tag values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.util.Map&lt;java.lang.Integer,java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#_tagMap">_tagMap</a></strong></code>
<div class="block">Map of values hashed by type identifiers.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#Directory()">Directory</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#addError(java.lang.String)">addError</a></strong>(java.lang.String&nbsp;message)</code>
<div class="block">Registers an error message with this directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#containsTag(int)">containsTag</a></strong>(int&nbsp;tagType)</code>
<div class="block">Indicates whether the specified tag type has been set.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getBoolean(int)">getBoolean</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a boolean, if possible.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getBooleanObject(int)">getBooleanObject</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a boolean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getByteArray(int)">getByteArray</a></strong>(int&nbsp;tagType)</code>
<div class="block">Gets the specified tag's value as an byte array, if possible.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Date</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getDate(int)">getDate</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a java.util.Date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Date</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getDate(int, java.util.TimeZone)">getDate</a></strong>(int&nbsp;tagType,
       java.util.TimeZone&nbsp;timeZone)</code>
<div class="block">Returns the specified tag's value as a java.util.Date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getDescription(int)">getDescription</a></strong>(int&nbsp;tagType)</code>
<div class="block">Provides a description of a tag's value using the descriptor set by
 <code>setDescriptor(Descriptor)</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getDouble(int)">getDouble</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a double, if possible.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Double</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getDoubleObject(int)">getDoubleObject</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a Double.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getErrorCount()">getErrorCount</a></strong>()</code>
<div class="block">Returns the count of error messages in this directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Iterable&lt;java.lang.String&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getErrors()">getErrors</a></strong>()</code>
<div class="block">Used to iterate over any error messages contained in this directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getFloat(int)">getFloat</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a float, if possible.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Float</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getFloatObject(int)">getFloatObject</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a float.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getInt(int)">getInt</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as an int, if possible.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int[]</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getIntArray(int)">getIntArray</a></strong>(int&nbsp;tagType)</code>
<div class="block">Gets the specified tag's value as an int array, if possible.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Integer</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getInteger(int)">getInteger</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as an Integer, if possible.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getLong(int)">getLong</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a long, if possible.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Long</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getLongObject(int)">getLongObject</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getName()">getName</a></strong>()</code>
<div class="block">Provides the name of the directory, for display purposes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getObject(int)">getObject</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the object hashed for the particular tag type specified, if available.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getRational(int)">getRational</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a Rational.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getRationalArray(int)">getRationalArray</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as an array of Rational.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getString(int)">getString</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the specified tag's value as a String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getString(int, java.lang.String)">getString</a></strong>(int&nbsp;tagType,
         java.lang.String&nbsp;charset)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String[]</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getStringArray(int)">getStringArray</a></strong>(int&nbsp;tagType)</code>
<div class="block">Gets the specified tag's value as a String array, if possible.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getTagCount()">getTagCount</a></strong>()</code>
<div class="block">Returns the number of tags set in this Directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getTagName(int)">getTagName</a></strong>(int&nbsp;tagType)</code>
<div class="block">Returns the name of a specified tag as a String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected abstract java.util.HashMap&lt;java.lang.Integer,java.lang.String&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getTagNameMap()">getTagNameMap</a></strong>()</code>
<div class="block">Provides the map of tag names, hashed by tag type identifier.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Collection&lt;<a href="../../../com/drew/metadata/Tag.html" title="class in com.drew.metadata">Tag</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#getTags()">getTags</a></strong>()</code>
<div class="block">Returns an Iterator of Tag instances that have been set in this Directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#hasErrors()">hasErrors</a></strong>()</code>
<div class="block">Gets a value indicating whether this directory has any error messages.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setBoolean(int, boolean)">setBoolean</a></strong>(int&nbsp;tagType,
          boolean&nbsp;value)</code>
<div class="block">Sets a <code>boolean</code> value for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setByteArray(int, byte[])">setByteArray</a></strong>(int&nbsp;tagType,
            byte[]&nbsp;bytes)</code>
<div class="block">Sets a <code>byte[]</code> (array) for the specified tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setDate(int, java.util.Date)">setDate</a></strong>(int&nbsp;tagType,
       java.util.Date&nbsp;value)</code>
<div class="block">Sets a <code>java.util.Date</code> value for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setDescriptor(com.drew.metadata.TagDescriptor)">setDescriptor</a></strong>(<a href="../../../com/drew/metadata/TagDescriptor.html" title="class in com.drew.metadata">TagDescriptor</a>&nbsp;descriptor)</code>
<div class="block">Sets the descriptor used to interpret tag values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setDouble(int, double)">setDouble</a></strong>(int&nbsp;tagType,
         double&nbsp;value)</code>
<div class="block">Sets a <code>double</code> value for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setDoubleArray(int, double[])">setDoubleArray</a></strong>(int&nbsp;tagType,
              double[]&nbsp;doubles)</code>
<div class="block">Sets a <code>double[]</code> (array) for the specified tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setFloat(int, float)">setFloat</a></strong>(int&nbsp;tagType,
        float&nbsp;value)</code>
<div class="block">Sets a <code>float</code> value for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setFloatArray(int, float[])">setFloatArray</a></strong>(int&nbsp;tagType,
             float[]&nbsp;floats)</code>
<div class="block">Sets a <code>float[]</code> (array) for the specified tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setInt(int, int)">setInt</a></strong>(int&nbsp;tagType,
      int&nbsp;value)</code>
<div class="block">Sets an <code>int</code> value for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setIntArray(int, int[])">setIntArray</a></strong>(int&nbsp;tagType,
           int[]&nbsp;ints)</code>
<div class="block">Sets an <code>int[]</code> (array) for the specified tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setLong(int, long)">setLong</a></strong>(int&nbsp;tagType,
       long&nbsp;value)</code>
<div class="block">Sets a <code>long</code> value for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setObject(int, java.lang.Object)">setObject</a></strong>(int&nbsp;tagType,
         java.lang.Object&nbsp;value)</code>
<div class="block">Sets a <code>Object</code> for the specified tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setObjectArray(int, java.lang.Object)">setObjectArray</a></strong>(int&nbsp;tagType,
              java.lang.Object&nbsp;array)</code>
<div class="block">Sets an array <code>Object</code> for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setRational(int, com.drew.lang.Rational)">setRational</a></strong>(int&nbsp;tagType,
           <a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a>&nbsp;rational)</code>
<div class="block">Sets a <code>Rational</code> value for the specified tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setRationalArray(int, com.drew.lang.Rational[])">setRationalArray</a></strong>(int&nbsp;tagType,
                <a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a>[]&nbsp;rationals)</code>
<div class="block">Sets a <code>Rational[]</code> (array) for the specified tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setString(int, java.lang.String)">setString</a></strong>(int&nbsp;tagType,
         java.lang.String&nbsp;value)</code>
<div class="block">Sets a <code>String</code> value for the specified tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/drew/metadata/Directory.html#setStringArray(int, java.lang.String[])">setStringArray</a></strong>(int&nbsp;tagType,
              java.lang.String[]&nbsp;strings)</code>
<div class="block">Sets a <code>String[]</code> (array) for the specified tag.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="_tagMap">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_tagMap</h4>
<pre>protected final&nbsp;java.util.Map&lt;java.lang.Integer,java.lang.Object&gt; _tagMap</pre>
<div class="block">Map of values hashed by type identifiers.</div>
</li>
</ul>
<a name="_definedTagList">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_definedTagList</h4>
<pre>protected final&nbsp;java.util.Collection&lt;<a href="../../../com/drew/metadata/Tag.html" title="class in com.drew.metadata">Tag</a>&gt; _definedTagList</pre>
<div class="block">A convenient list holding tag values in the order in which they were stored.
 This is used for creation of an iterator, and for counting the number of
 defined tags.</div>
</li>
</ul>
<a name="_descriptor">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>_descriptor</h4>
<pre>protected&nbsp;<a href="../../../com/drew/metadata/TagDescriptor.html" title="class in com.drew.metadata">TagDescriptor</a> _descriptor</pre>
<div class="block">The descriptor used to interpret tag values.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="Directory()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Directory</h4>
<pre>protected&nbsp;Directory()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getName()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getName</h4>
<pre>public abstract&nbsp;java.lang.String&nbsp;getName()</pre>
<div class="block">Provides the name of the directory, for display purposes.  E.g. <code>Exif</code></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the name of the directory</dd></dl>
</li>
</ul>
<a name="getTagNameMap()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTagNameMap</h4>
<pre>protected abstract&nbsp;java.util.HashMap&lt;java.lang.Integer,java.lang.String&gt;&nbsp;getTagNameMap()</pre>
<div class="block">Provides the map of tag names, hashed by tag type identifier.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the map of tag names</dd></dl>
</li>
</ul>
<a name="containsTag(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsTag</h4>
<pre>public&nbsp;boolean&nbsp;containsTag(int&nbsp;tagType)</pre>
<div class="block">Indicates whether the specified tag type has been set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag type to check for</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if a value exists for the specified tag type, false if not</dd></dl>
</li>
</ul>
<a name="getTags()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTags</h4>
<pre>public&nbsp;java.util.Collection&lt;<a href="../../../com/drew/metadata/Tag.html" title="class in com.drew.metadata">Tag</a>&gt;&nbsp;getTags()</pre>
<div class="block">Returns an Iterator of Tag instances that have been set in this Directory.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an Iterator of Tag instances</dd></dl>
</li>
</ul>
<a name="getTagCount()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTagCount</h4>
<pre>public&nbsp;int&nbsp;getTagCount()</pre>
<div class="block">Returns the number of tags set in this Directory.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of tags set in this Directory</dd></dl>
</li>
</ul>
<a name="setDescriptor(com.drew.metadata.TagDescriptor)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDescriptor</h4>
<pre>public&nbsp;void&nbsp;setDescriptor(<a href="../../../com/drew/metadata/TagDescriptor.html" title="class in com.drew.metadata">TagDescriptor</a>&nbsp;descriptor)</pre>
<div class="block">Sets the descriptor used to interpret tag values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>descriptor</code> - the descriptor used to interpret tag values</dd></dl>
</li>
</ul>
<a name="addError(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addError</h4>
<pre>public&nbsp;void&nbsp;addError(java.lang.String&nbsp;message)</pre>
<div class="block">Registers an error message with this directory.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>message</code> - an error message.</dd></dl>
</li>
</ul>
<a name="hasErrors()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasErrors</h4>
<pre>public&nbsp;boolean&nbsp;hasErrors()</pre>
<div class="block">Gets a value indicating whether this directory has any error messages.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if the directory contains errors, otherwise false</dd></dl>
</li>
</ul>
<a name="getErrors()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getErrors</h4>
<pre>public&nbsp;java.lang.Iterable&lt;java.lang.String&gt;&nbsp;getErrors()</pre>
<div class="block">Used to iterate over any error messages contained in this directory.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an iterable collection of error message strings.</dd></dl>
</li>
</ul>
<a name="getErrorCount()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getErrorCount</h4>
<pre>public&nbsp;int&nbsp;getErrorCount()</pre>
<div class="block">Returns the count of error messages in this directory.</div>
</li>
</ul>
<a name="setInt(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setInt</h4>
<pre>public&nbsp;void&nbsp;setInt(int&nbsp;tagType,
          int&nbsp;value)</pre>
<div class="block">Sets an <code>int</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag as an int</dd></dl>
</li>
</ul>
<a name="setIntArray(int, int[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIntArray</h4>
<pre>public&nbsp;void&nbsp;setIntArray(int&nbsp;tagType,
               int[]&nbsp;ints)</pre>
<div class="block">Sets an <code>int[]</code> (array) for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd><dd><code>ints</code> - the int array to store</dd></dl>
</li>
</ul>
<a name="setFloat(int, float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFloat</h4>
<pre>public&nbsp;void&nbsp;setFloat(int&nbsp;tagType,
            float&nbsp;value)</pre>
<div class="block">Sets a <code>float</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag as a float</dd></dl>
</li>
</ul>
<a name="setFloatArray(int, float[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFloatArray</h4>
<pre>public&nbsp;void&nbsp;setFloatArray(int&nbsp;tagType,
                 float[]&nbsp;floats)</pre>
<div class="block">Sets a <code>float[]</code> (array) for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd><dd><code>floats</code> - the float array to store</dd></dl>
</li>
</ul>
<a name="setDouble(int, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDouble</h4>
<pre>public&nbsp;void&nbsp;setDouble(int&nbsp;tagType,
             double&nbsp;value)</pre>
<div class="block">Sets a <code>double</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag as a double</dd></dl>
</li>
</ul>
<a name="setDoubleArray(int, double[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDoubleArray</h4>
<pre>public&nbsp;void&nbsp;setDoubleArray(int&nbsp;tagType,
                  double[]&nbsp;doubles)</pre>
<div class="block">Sets a <code>double[]</code> (array) for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd><dd><code>doubles</code> - the double array to store</dd></dl>
</li>
</ul>
<a name="setString(int, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setString</h4>
<pre>public&nbsp;void&nbsp;setString(int&nbsp;tagType,
             java.lang.String&nbsp;value)</pre>
<div class="block">Sets a <code>String</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag as a String</dd></dl>
</li>
</ul>
<a name="setStringArray(int, java.lang.String[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStringArray</h4>
<pre>public&nbsp;void&nbsp;setStringArray(int&nbsp;tagType,
                  java.lang.String[]&nbsp;strings)</pre>
<div class="block">Sets a <code>String[]</code> (array) for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd><dd><code>strings</code> - the String array to store</dd></dl>
</li>
</ul>
<a name="setBoolean(int, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBoolean</h4>
<pre>public&nbsp;void&nbsp;setBoolean(int&nbsp;tagType,
              boolean&nbsp;value)</pre>
<div class="block">Sets a <code>boolean</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag as a boolean</dd></dl>
</li>
</ul>
<a name="setLong(int, long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLong</h4>
<pre>public&nbsp;void&nbsp;setLong(int&nbsp;tagType,
           long&nbsp;value)</pre>
<div class="block">Sets a <code>long</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag as a long</dd></dl>
</li>
</ul>
<a name="setDate(int, java.util.Date)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDate</h4>
<pre>public&nbsp;void&nbsp;setDate(int&nbsp;tagType,
           java.util.Date&nbsp;value)</pre>
<div class="block">Sets a <code>java.util.Date</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag as a java.util.Date</dd></dl>
</li>
</ul>
<a name="setRational(int, com.drew.lang.Rational)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRational</h4>
<pre>public&nbsp;void&nbsp;setRational(int&nbsp;tagType,
               <a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a>&nbsp;rational)</pre>
<div class="block">Sets a <code>Rational</code> value for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>rational</code> - rational number</dd></dl>
</li>
</ul>
<a name="setRationalArray(int, com.drew.lang.Rational[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRationalArray</h4>
<pre>public&nbsp;void&nbsp;setRationalArray(int&nbsp;tagType,
                    <a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a>[]&nbsp;rationals)</pre>
<div class="block">Sets a <code>Rational[]</code> (array) for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd><dd><code>rationals</code> - the Rational array to store</dd></dl>
</li>
</ul>
<a name="setByteArray(int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setByteArray</h4>
<pre>public&nbsp;void&nbsp;setByteArray(int&nbsp;tagType,
                byte[]&nbsp;bytes)</pre>
<div class="block">Sets a <code>byte[]</code> (array) for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd><dd><code>bytes</code> - the byte array to store</dd></dl>
</li>
</ul>
<a name="setObject(int, java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setObject</h4>
<pre>public&nbsp;void&nbsp;setObject(int&nbsp;tagType,
             java.lang.Object&nbsp;value)</pre>
<div class="block">Sets a <code>Object</code> for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>value</code> - the value for the specified tag</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if value is <code>null</code></dd></dl>
</li>
</ul>
<a name="setObjectArray(int, java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setObjectArray</h4>
<pre>public&nbsp;void&nbsp;setObjectArray(int&nbsp;tagType,
                  java.lang.Object&nbsp;array)</pre>
<div class="block">Sets an array <code>Object</code> for the specified tag.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag's value as an int</dd><dd><code>array</code> - the array of values for the specified tag</dd></dl>
</li>
</ul>
<a name="getInt(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public&nbsp;int&nbsp;getInt(int&nbsp;tagType)
           throws <a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></pre>
<div class="block">Returns the specified tag's value as an int, if possible.  Every attempt to represent the tag's value as an int
 is taken.  Here is a list of the action taken depending upon the tag's original type:
 <ul>
 <li> int - Return unchanged.
 <li> Number - Return an int value (real numbers are truncated).
 <li> Rational - Truncate any fractional part and returns remaining int.
 <li> String - Attempt to parse string as an int.  If this fails, convert the char[] to an int (using shifts and OR).
 <li> Rational[] - Return int value of first item in array.
 <li> byte[] - Return int value of first item in array.
 <li> int[] - Return int value of first item in array.
 </ul></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></code> - if no value exists for tagType or if it cannot be converted to an int.</dd></dl>
</li>
</ul>
<a name="getInteger(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInteger</h4>
<pre>public&nbsp;java.lang.Integer&nbsp;getInteger(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as an Integer, if possible.  Every attempt to represent the tag's value as an
 Integer is taken.  Here is a list of the action taken depending upon the tag's original type:
 <ul>
 <li> int - Return unchanged
 <li> Number - Return an int value (real numbers are truncated)
 <li> Rational - Truncate any fractional part and returns remaining int
 <li> String - Attempt to parse string as an int.  If this fails, convert the char[] to an int (using shifts and OR)
 <li> Rational[] - Return int value of first item in array if length &gt; 0
 <li> byte[] - Return int value of first item in array if length &gt; 0
 <li> int[] - Return int value of first item in array if length &gt; 0
 </ul>

 If the value is not found or cannot be converted to int, <code>null</code> is returned.</div>
</li>
</ul>
<a name="getStringArray(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStringArray</h4>
<pre>public&nbsp;java.lang.String[]&nbsp;getStringArray(int&nbsp;tagType)</pre>
<div class="block">Gets the specified tag's value as a String array, if possible.  Only supported
 where the tag is set as String[], String, int[], byte[] or Rational[].</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd>
<dt><span class="strong">Returns:</span></dt><dd>the tag's value as an array of Strings. If the value is unset or cannot be converted, <code>null</code> is returned.</dd></dl>
</li>
</ul>
<a name="getIntArray(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIntArray</h4>
<pre>public&nbsp;int[]&nbsp;getIntArray(int&nbsp;tagType)</pre>
<div class="block">Gets the specified tag's value as an int array, if possible.  Only supported
 where the tag is set as String, Integer, int[], byte[] or Rational[].</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd>
<dt><span class="strong">Returns:</span></dt><dd>the tag's value as an int array</dd></dl>
</li>
</ul>
<a name="getByteArray(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getByteArray</h4>
<pre>public&nbsp;byte[]&nbsp;getByteArray(int&nbsp;tagType)</pre>
<div class="block">Gets the specified tag's value as an byte array, if possible.  Only supported
 where the tag is set as String, Integer, int[], byte[] or Rational[].</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag identifier</dd>
<dt><span class="strong">Returns:</span></dt><dd>the tag's value as a byte array</dd></dl>
</li>
</ul>
<a name="getDouble(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
<pre>public&nbsp;double&nbsp;getDouble(int&nbsp;tagType)
                 throws <a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></pre>
<div class="block">Returns the specified tag's value as a double, if possible.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></code></dd></dl>
</li>
</ul>
<a name="getDoubleObject(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDoubleObject</h4>
<pre>public&nbsp;java.lang.Double&nbsp;getDoubleObject(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as a Double.  If the tag is not set or cannot be converted, <code>null</code> is returned.</div>
</li>
</ul>
<a name="getFloat(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>public&nbsp;float&nbsp;getFloat(int&nbsp;tagType)
               throws <a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></pre>
<div class="block">Returns the specified tag's value as a float, if possible.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></code></dd></dl>
</li>
</ul>
<a name="getFloatObject(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloatObject</h4>
<pre>public&nbsp;java.lang.Float&nbsp;getFloatObject(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as a float.  If the tag is not set or cannot be converted, <code>null</code> is returned.</div>
</li>
</ul>
<a name="getLong(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public&nbsp;long&nbsp;getLong(int&nbsp;tagType)
             throws <a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></pre>
<div class="block">Returns the specified tag's value as a long, if possible.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></code></dd></dl>
</li>
</ul>
<a name="getLongObject(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLongObject</h4>
<pre>public&nbsp;java.lang.Long&nbsp;getLongObject(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as a long.  If the tag is not set or cannot be converted, <code>null</code> is returned.</div>
</li>
</ul>
<a name="getBoolean(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBoolean</h4>
<pre>public&nbsp;boolean&nbsp;getBoolean(int&nbsp;tagType)
                   throws <a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></pre>
<div class="block">Returns the specified tag's value as a boolean, if possible.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/drew/metadata/MetadataException.html" title="class in com.drew.metadata">MetadataException</a></code></dd></dl>
</li>
</ul>
<a name="getBooleanObject(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBooleanObject</h4>
<pre>public&nbsp;java.lang.Boolean&nbsp;getBooleanObject(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as a boolean.  If the tag is not set or cannot be converted, <code>null</code> is returned.</div>
</li>
</ul>
<a name="getDate(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDate</h4>
<pre>public&nbsp;java.util.Date&nbsp;getDate(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as a java.util.Date.  If the value is unset or cannot be converted, <code>null</code> is returned.
 <p/>
 If the underlying value is a <code>String</code>, then attempts will be made to parse the string as though it is in
 the current <code>TimeZone</code>.  If the <code>TimeZone</code> is known, call the overload that accepts one as an argument.</div>
</li>
</ul>
<a name="getDate(int, java.util.TimeZone)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDate</h4>
<pre>public&nbsp;java.util.Date&nbsp;getDate(int&nbsp;tagType,
                     java.util.TimeZone&nbsp;timeZone)</pre>
<div class="block">Returns the specified tag's value as a java.util.Date.  If the value is unset or cannot be converted, <code>null</code> is returned.
 <p/>
 If the underlying value is a <code>String</code>, then attempts will be made to parse the string as though it is in
 the <code>TimeZone</code> represented by the <code>timeZone</code> parameter (if it is non-null).  Note that this parameter
 is only considered if the underlying value is a string and parsing occurs, otherwise it has no effect.</div>
</li>
</ul>
<a name="getRational(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRational</h4>
<pre>public&nbsp;<a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a>&nbsp;getRational(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as a Rational.  If the value is unset or cannot be converted, <code>null</code> is returned.</div>
</li>
</ul>
<a name="getRationalArray(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRationalArray</h4>
<pre>public&nbsp;<a href="../../../com/drew/lang/Rational.html" title="class in com.drew.lang">Rational</a>[]&nbsp;getRationalArray(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as an array of Rational.  If the value is unset or cannot be converted, <code>null</code> is returned.</div>
</li>
</ul>
<a name="getString(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
<pre>public&nbsp;java.lang.String&nbsp;getString(int&nbsp;tagType)</pre>
<div class="block">Returns the specified tag's value as a String.  This value is the 'raw' value.  A more presentable decoding
 of this value may be obtained from the corresponding Descriptor.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the String representation of the tag's value, or
         <code>null</code> if the tag hasn't been defined.</dd></dl>
</li>
</ul>
<a name="getString(int, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
<pre>public&nbsp;java.lang.String&nbsp;getString(int&nbsp;tagType,
                         java.lang.String&nbsp;charset)</pre>
</li>
</ul>
<a name="getObject(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getObject</h4>
<pre>public&nbsp;java.lang.Object&nbsp;getObject(int&nbsp;tagType)</pre>
<div class="block">Returns the object hashed for the particular tag type specified, if available.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag type identifier</dd>
<dt><span class="strong">Returns:</span></dt><dd>the tag's value as an Object if available, else <code>null</code></dd></dl>
</li>
</ul>
<a name="getTagName(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTagName</h4>
<pre>public&nbsp;java.lang.String&nbsp;getTagName(int&nbsp;tagType)</pre>
<div class="block">Returns the name of a specified tag as a String.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag type identifier</dd>
<dt><span class="strong">Returns:</span></dt><dd>the tag's name as a String</dd></dl>
</li>
</ul>
<a name="getDescription(int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getDescription</h4>
<pre>public&nbsp;java.lang.String&nbsp;getDescription(int&nbsp;tagType)</pre>
<div class="block">Provides a description of a tag's value using the descriptor set by
 <code>setDescriptor(Descriptor)</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tagType</code> - the tag type identifier</dd>
<dt><span class="strong">Returns:</span></dt><dd>the tag value's description as a String</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Directory.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><a href='http://www.drewnoakes.com/code/exif/' title='Go to the project home page.'><img src='http://metadata-extractor.googlecode.com/git/Resources/metadata-extractor-logo-131x30.png' border=0 alt='Metadata Extractor Logo'></a></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/drew/metadata/DefaultTagDescriptor.html" title="class in com.drew.metadata"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/drew/metadata/Face.html" title="class in com.drew.metadata"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/drew/metadata/Directory.html" target="_top">Frames</a></li>
<li><a href="Directory.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><i>Copyright &#169; 2003-2012 Drew Noakes. All Rights Reserved.</i>
<script src='http://www.google-analytics.com/urchin.js' type='text/javascript'></script>
<script type='text/javascript'>
_uacct = 'UA-936661-1';
urchinTracker();
</script></small></p>
</body>
</html>
